package com.replication.logging;

public class LoggerFactory {
	private static boolean hasSlf4j = false;
	static{
		try {
            Class.forName("org.slf4j.impl.StaticLoggerBinder");
            hasSlf4j = true;
        } catch (Exception e) {
        }
	}

    public static Logger getLogger(String name){
        if(hasSlf4j){
            return new Slf4jLogger(name);
        }
        return new JdkLogger(name);
    }
    
    public static Logger getLogger(Class<?> claxx){
        return getLogger(claxx.getName());
    }
}
